<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>testJQuery001</title>
    <script type="text/javascript" src="../lib/jquery-easyui-1.4.2/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
    $(function(){
        var settings = { validate: false, limit: 5, name: "foo" };
        var options = { validate: true, name: "bar" };
        // 此例子验证相同属性是否会被后面的对象覆盖,不管有多少对象具有此属性. 例如:　name
        jQuery.extend(settings, options, {name: 'wxg'});
        console.log( settings );
    });
</script>
</body>
</html>